perl: remove build timestamp
authorAlexander Couzens <[email protected]>
Wed, 6 Dec 2017 22:51:49 +0000 (23:51 +0100)
committerAlexander Couzens <[email protected]>
Thu, 14 Dec 2017 17:59:10 +0000 (18:59 +0100)
Build timestamp prevents reproducible builds [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <[email protected]>
lang/perl/Makefile
lang/perl/patches/120-remove-build-timestamp.patch [new file with mode: 0644]

index d265525a7f4b99fa3c041abc95423b50e18b69ef..5e20f6cb3693ee4ba2cf3142d85e41966e3771a8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=perl
 PKG_VERSION:=5.26.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=\
                https://cpan.metacpan.org/src/5.0 \
diff --git a/lang/perl/patches/120-remove-build-timestamp.patch b/lang/perl/patches/120-remove-build-timestamp.patch
new file mode 100644 (file)
index 0000000..d20345e
--- /dev/null
@@ -0,0 +1,21 @@
+Index: perl-5.26.1/perl.c
+===================================================================
+--- perl-5.26.1.orig/perl.c
++++ perl-5.26.1/perl.c
+@@ -1870,16 +1870,6 @@ S_Internals_V(pTHX_ CV *cv)
+     PUSHs(Perl_newSVpvn_flags(aTHX_ non_bincompat_options,
+                             sizeof(non_bincompat_options) - 1, SVs_TEMP));
+-#ifndef PERL_BUILD_DATE
+-#  ifdef __DATE__
+-#    ifdef __TIME__
+-#      define PERL_BUILD_DATE __DATE__ " " __TIME__
+-#    else
+-#      define PERL_BUILD_DATE __DATE__
+-#    endif
+-#  endif
+-#endif
+-
+ #ifdef PERL_BUILD_DATE
+     PUSHs(Perl_newSVpvn_flags(aTHX_
+                             STR_WITH_LEN("Compiled at " PERL_BUILD_DATE),